import os
import sys

#DON't Delete, this is a backup
"""if os.getcwd() == os.path.split(sys.argv[0])[0]:
    os.chdir('..\\')
    sys.path.append(os.getcwd())
    #print sys.path
else:
    sys.path.append(os.path.split(sys.argv[0])[0])
    mypath = os.path.split(os.path.split(sys.argv[0])[0])
    sys.path.append(mypath[0])

"""  

if os.getcwd() == os.path.split(sys.argv[0])[0]:
    #os.chdir('..\\')
    sys.path.append(os.getcwd() + '\\system')
    #print "me = ",os.path.split(sys.argv[0])[0]
    #print sys.path
else:
    #data = os.path.split(sys.argv[0])[0]
    #print data
    #sys.path.append(os.path.split(sys.argv[0])[0])
    #mypath = os.path.split(os.path.split(sys.argv[0])[0])
    mypath = os.path.split(sys.argv[0])[0] + '\\system'
    #print "mypath = ", mypath
    #sys.path.append(mypath[0])
    sys.path.append(mypath)
    #print sys.path
    
def pathme(data=None):
    if data == None:
        data1 = os.getcwd()
        sys.path.append(data1)
        os.chdir('..\\')
        data2 = os.getcwd()
        sys.path.append(data2)
    else:
        sys.path.append(data)
        os.chdir('..\\')
        data2 = os.getcwd()
        sys.path.append(data2)
        
        
    